projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b4c672
)
(ange-ftp-kill-ftp-process): Handle buffer name as arg.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 13 Aug 1996 18:29:36 +0000
(18:29 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 13 Aug 1996 18:29:36 +0000
(18:29 +0000)
lisp/ange-ftp.el
patch
|
blob
|
history
diff --git
a/lisp/ange-ftp.el
b/lisp/ange-ftp.el
index d0dae527cc94b3cde4407c02176ea8463c269d01..6174ce70c9c8b9bd058abc99e8c79855d0f0c1e0 100644
(file)
--- a/
lisp/ange-ftp.el
+++ b/
lisp/ange-ftp.el
@@
-1367,7
+1367,8
@@
If the BUFFER's visited filename or default-directory is an ftp filename
then kill the related ftp process."
(interactive "bKill FTP process associated with buffer: ")
(if (null buffer)
- (setq buffer (current-buffer)))
+ (setq buffer (current-buffer))
+ (setq buffer (get-buffer buffer)))
(let ((file (or (buffer-file-name buffer)
(save-excursion (set-buffer buffer) default-directory))))
(if file